﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Rio.Framework.Pages.Controls.BaseClass;
using Telerik.Windows.Controls;
using Rio.Framework.Pages.Controls.Models;
using NetBay.Core.BusinessEntities.Workflow;
using System.ComponentModel;
using System.Collections.ObjectModel;

namespace Rio.Framework.Pages.Workflow.Filters
{
    public partial class ComboFilterState : ControlBase
    {

        public static readonly DependencyProperty ItemsProperty =
            DependencyProperty.Register("Items", typeof(ObservableCollection<ISelectableItem<WorkflowState>>), typeof(ComboFilterState), null);

        public ISelectableItem<WorkflowState> SelectedFilter
        {
            get { return (ISelectableItem<WorkflowState>)GetValue(SelectedFilterProperty); }
            set { SetValue(SelectedFilterProperty, value); }
        }
        public static readonly DependencyProperty SelectedFilterProperty =
            DependencyProperty.Register("SelectedFilter", typeof(ISelectableItem<WorkflowState>), typeof(ComboFilterState), null);

        /// <summary>
        /// Gets or sets the items.
        /// </summary>
        /// <value>The items.</value>
        public ObservableCollection<ISelectableItem<WorkflowState>> Items
        {
            get { return (ObservableCollection<ISelectableItem<WorkflowState>>)GetValue(ItemsProperty); }
            set { SetValue(ItemsProperty, value); }
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ComboFilterState" /> class.
        /// </summary>
        public ComboFilterState()
        {
            InitializeComponent();
        }
    }
}
